/*
  
 
  
 */
 


#include "Arduino.h"
#include "AFMotor.h"

AF_Stepper motor(200,2);

int i = 0;
int s = 0;

extern "C" void __cxa_pure_virtual() { while (1); }
	
// the setup routine runs once when you press reset:
void setup() {                
     Serial.begin(9600);   
	 Serial.println("Stepper Test");
	 motor.setSpeed(5);
}

// the loop routiruns over and over again forever:
void loop() {
   motor.step(s, FORWARD, SINGLE);
   while (i < 10,i++)
   {

	   delay(10);
	  

   }
   i = 0;
   s++;
   if (s >= 200)
   {
	   s = 1;
   }
   motor.setSpeed(30);
   Serial.println(s);
}